# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-games
pkgver=40.0
pkgrel=0
pkgdesc="Browse and play your games"
url="https://wiki.gnome.org/Apps/Games"
# s390x and riscv64 blocked by librsvg
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
makedepends="meson gtk+3.0-dev vala grilo-dev libhandy1-dev librsvg-dev libmanette-dev
	libsoup-dev tracker-dev sqlite-dev libxml2-dev libarchive-dev retro-gtk-dev"
checkdepends="desktop-file-utils appstream-glib"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-games/${pkgver%.*}/gnome-games-$pkgver.tar.xz
	tracker3.patch
	meson-0.60.patch
	"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e060c68fc936f4ac13d7a7be898711479b6489845b2fe7376fd0329e0d6b29d39611720ab6a1e0a52b89fc7f9d47e4654da946b62ecf1e9f645d0bfb62a3998d  gnome-games-40.0.tar.xz
34c2de9d2c7e49a5e6430e86f6d11eb5c3e701e784f096fa970d32ea941d33c272fd1f1d71ae5d2a914e0278848e9dae7d07c2ab72ca60aa7b3a16716ee876d6  tracker3.patch
714e7cabbb45b63eddccfe295976a29bc85b577c2040a55903b84a2270fa7b63621cbed50c0bfecf1f17a8a8eb28d98e0a3f7c611ba30a97b62a44ffd6566340  meson-0.60.patch
"
